﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YinfangWeb.BLL.Model;

namespace YinfangWeb.DAL
{
    public partial class MerchantDataDAO
    {
        public List<ObjMerchantSelect> GetMerchantSelectList()
        {
            var sql = "SELECT MerchantDataID,MerchantName FROM MerchantData WHERE MerchantState=1";
            using (var conn = ConnectionFactory.CreateConnection())
            {
                var q = conn.Query<ObjMerchantSelect>(sql);
                return q.ToList();
            }
        }
    }
}
